520 HTAB 4: PRINT "7-BEGIN NEW SHORT TERM FILE": HTAB 4: PRINT "8-PRODUCE LONG TERM YIELD GRAPH": HTAB 4: PRINT "9-PRODUCE LONG TERM MATURITY GRAPH": PRINT : HTAB 4: PRINT "0-END PROGRAM"
600 HTAB 4: GET KEY$: IF KEY$ <"0" OR KEY$ >"9" THEN PRINT "INVALID KEY": FOR I = 1 TO 200: NEXT I: GOTO 300
800 IF KEY$ = "0" THEN END
820 ON VAL(KEY$) GOSUB 1000,2000,3000,4000,5000,6000,7000,8000,9000: GOTO 300
4020 PRINT : INPUT "ENTER FUND # ";F%: IF F% >10 THEN PRINT "ONLY 10 FUND NUMBERS PERMITTED": GOTO 4020
4030 INPUT "ENTER WEEK # ";W%: IF W% >10 THEN PRINT "ONLY 10 WEEKS PERMITTED": GOTO 4030
4040 INPUT "ENTER NEW MATURITY ";M: IF M <2 OR M >40 THEN PRINT "INVALID MATURITY": GOTO 4040
4080 B(F%,W%) = M: PRINT "UPDATE APPLIED": PRINT "ANY FURTHER UPDATES(Y/N)";: GET Q$: IF Q$ = "Y" THEN GOTO 4020
4100 PRINT : PRINT "SAVE UPDATED FILE(Y/N)";: GET Q$: PRINT : IF Q$ < >"Y" THEN GOTO 4500
4212 PRINT D$"OPEN FILE-COUNT"
4214 PRINT D$"READ FILE-COUNT"
4216 INPUT FC%
4218 PRINT D$"CLOSE FILE-COUNT"
4219 FC$ = STR$(FC%)
4220 PRINT D$;"OPEN MATURITY";FC$
4230 PRINT D$;"WRITE MATURITY";FC$
4240 FOR I = 1 TO 10: FOR J = 1 TO 10: PRINT B(I,J): NEXT J: NEXT I
4290 PRINT D$;"CLOSE MATURITY";FC$
4300 PRINT "MATURITY FILE SAVED"
4500 PRINT : PRINT "HIT ANY KEY TO RETURN TO MENU";: GET KEY$: RETURN
5000 HGR :CSAV = 7:F% = 0: HCOLOR= CSAV: HPLOT 0,0 TO 0,159 TO 279,159
5050 W% = 1:XSAV = 0:CSAV = CSAV -1: HCOLOR= CSAV
5057 IF CSAV = 4 THEN CSAV = 3: HCOLOR= CSAV
5060 F% = F% +1: IF F% >10 THEN GOTO 5200
5070 IF A(F%,1) = 0 THEN GOTO 5200
5080 YSAV = -15.9 *A(F%,W%) +318
5100 W% = W% +1: IF W% >10 THEN GOTO 5050
5120 IF A(F%,W%) = 0 THEN GOTO 5050
5130 Y = -15.9 *A(F%,W%) +318
5140 X = XSAV +20
5150 HPLOT XSAV,YSAV TO X,Y
5160 XSAV = X:YSAV = Y
5170 GOTO 5100
5200 VTAB 21: HTAB 10: PRINT "YIELD GRAPH": PRINT : PRINT "HIT ANY KEY TO RETURN TO MENU";: GET KEY$: TEXT : RETURN
6000 HGR :CSAV = 7:F% = 0: HCOLOR= CSAV: HPLOT 0,0 TO 0,159 TO 279,159
6050 W% = 1:XSAV = 0:CSAV = CSAV -1: HCOLOR= CSAV
6057 IF CSAV = 4 THEN CSAV = 3: HCOLOR= CSAV
6060 F% = F% +1: IF F% >10 THEN GOTO 6200
6070 IF B(F%,1) = 0 THEN GOTO 6200
6080 YSAV = -4.18 *B(F%,W%) +167.2
6100 W% = W% +1: IF W% >10 THEN GOTO 6050
6120 IF B(F%,W%) = 0 THEN GOTO 6050
6130 Y = -4.18 *B(F%,W%) +167.2
6140 X = XSAV +20
6150 HPLOT XSAV,YSAV TO X,Y
6160 XSAV = X:YSAV = Y
6170 GOTO 6100
6200 VTAB 21: HTAB 9: PRINT "MATURITY GRAPH": PRINT : PRINT "HIT ANY KEY TO RETURN TO MENU";: GET KEY$: TEXT : RETURN
7000 HOME : PRINT : HTAB 4: PRINT "NEW SHORT TERM FILE ROUTINE": PRINT : PRINT "ENTER NUMBER OF DESIRED FUNCTION": PRINT : PRINT "1-ADD NEW SHORT TERM PERIOD": PRINT : PRINT "2-REINITIALIZE SHORT TERM FILES": GET KEY$: PRINT
7002 IF KEY$ < >"2" THEN GOTO 7050
7004 PRINT D$"OPEN FILE-COUNT"
7005 PRINT D$"READ FILE-COUNT"
7006 INPUT FC%
7007 PRINT D$"CLOSE FILE-COUNT"
7008 FOR I = 1 TO FC%:I$ = STR$(I)
7009 PRINT D$"DELETE YIELD";I$
7010 PRINT D$"DELETE MATURITY";I$
7012 NEXT I
7014 PRINT D$"OPEN YIELD1"
7015 PRINT D$"WRITE YIELD1"
7016 FOR I = 1 TO 10: FOR J = 1 TO 10: PRINT Z1: NEXT J: NEXT I
7017 PRINT D$"CLOSE YIELD1"
7018 PRINT D$"OPEN MATURITY1"
7019 PRINT D$"WRITE MATURITY1"
7020 FOR I = 1 TO 10: FOR J = 1 TO 10: PRINT Z1: NEXT J: NEXT I
7021 PRINT D$"CLOSE MATURITY1"
7022 PRINT D$"OPEN FILE-COUNT"
7024 PRINT D$"WRITE FILE-COUNT"
7026 FC% = 1: PRINT FC%
7028 PRINT D$"CLOSE FILE-COUNT"
7030 PRINT "FILES INITIALIZED": PRINT : GOTO 7300
7050 PRINT D$"OPEN FILE-COUNT"
7052 PRINT D$"READ FILE-COUNT"
7053 INPUT FC%
7054 PRINT D$"CLOSE FILE-COUNT"
7055 PRINT D$"OPEN FILE-COUNT"
7056 FC% = FC% +1
7057 PRINT D$"WRITE FILE-COUNT"
7058 PRINT FC%
7060 PRINT D$"CLOSE FILE-COUNT"
7062 FC$ = STR$(FC%)
7065 PRINT D$"OPEN YIELD";FC$
7066 PRINT D$"WRITE YIELD";FC$
7067 REM ZERO OUT NEW FILE
7068 FOR I = 1 TO 10: FOR J = 1 TO 10: PRINT Z1: NEXT J: NEXT I
7078 PRINT D$"CLOSE YIELD";FC$
7080 PRINT D$"OPEN MATURITY";FC$
7082 PRINT D$"WRITE MATURITY";FC$
7084 FOR I = 1 TO 10: FOR J = 1 TO 10: PRINT Z1: NEXT J: NEXT I
7094 PRINT D$"CLOSE MATURITY";FC$
7200 PRINT "NEW FILES CREATED": PRINT
7300 PRINT "HIT ANY KEY TO RETURN TO MENU";: GET KEY$: PRINT
7320 RETURN
8000 PRINT
8001 PRINT D$"OPEN FILE-COUNT"
8002 PRINT D$"READ FILE-COUNT"
8004 INPUT FC%
8006 PRINT D$"CLOSE FILE-COUNT"
8008 FOR I = 1 TO FC%:I$ = STR$(I)
8009 PRINT D$"OPEN YIELD";I$
8010 NEXT I
8012 HGR :CSAV = 7:F% = 0: HCOLOR= CSAV: HPLOT 0,0 TO 0,159 TO 279,159